DeriveGamemode('base')

include('includes/sh_loader.lua')

if SERVER then
	AddCSLuaFile('cl_init.lua')
	AddCSLuaFile('manifest.lua')
	AddCSLuaFile('shared.lua')
	
	include('sv_player_meta.lua')
	include('sv_player_events.lua')
	
	-- move all this to another file plz.
	resource.AddFile("resource/fonts/ComickBook_Simple.ttf")
	resource.AddFile("materials/flood/cursor.vmt")
	resource.AddFile("materials/flood/gui_close.vmt")
	resource.AddFile("materials/flood/heart.vmt")
	resource.AddFile("materials/flood/timeleft.vmt")
end

if CLIENT then
	include('cl_player_meta.lua')
end

include( 'shared.lua' );

-- Load Modules
LL( PATH_MODULES, nil, nil, function( f, p )
	sh_include( ("%s%s"):format( p, f ) )
end )

-- Load VGUI
LL( PATH_VGUI, nil, nil, function( f )
	if SERVER then
		AddCSLuaFile( ("%s%s"):format( PATH_VGUI, f ) )
	else
		include( ("%s%s"):format( PATH_VGUI, f ) )
	end
end )
